import server from '@/config/server/index.js'
import dictMgr from '@/biz/dict.js'
import dt from '@dt/dt'

function post(path, auth = true, config = true) {
  return server.api().post(path).auth(auth).config(config)
}

function get(path, auth = true, config = true) {
  return server.api().get(path).auth(auth).config(config)
}
let api = {
  removeSysCompanyForWeb: get('/sa-admin/api/v1/sysCompany/removeSysCompanyForWeb'), //合同del
  getSysCompanyStatusForWeb: post('/sa-admin/api/v1/sysCompany/getSysCompanyStatusForWeb'), //合同判重
  getSysCompanyForWeb: post('/sa-admin/api/v1/sysCompany/getSysCompanyForWeb'), //合同列表
  saveSysCompanyForWeb: post('/sa-admin/api/v1/sysCompany/saveSysCompanyForWeb') //合同新增
}
function getSysCompanyForWeb(data) {
  return api.getSysCompanyForWeb.fetch(data)
}
function saveSysCompanyForWeb(data) {
  return api.saveSysCompanyForWeb.fetch(data)
}
function getSysCompanyStatusForWeb(data) {
  return api.getSysCompanyStatusForWeb.fetch(data)
}
function removeSysCompanyForWeb(data) {
  return api.removeSysCompanyForWeb.fetch(data)
}
export default {
  getSysCompanyForWeb,
  saveSysCompanyForWeb,
  getSysCompanyStatusForWeb,
  removeSysCompanyForWeb
}
